﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMouseEvent>
#include <QPoint>
#include <QSystemTrayIcon>
#include <QIcon>
#include <QMenu>
#include <QAction>
#include <windows.h>
#include <QTimer>

#ifdef Q_OS_WIN
#pragma comment(lib, "user32.lib")
#include <qt_windows.h>
#endif

namespace Ui {
class Widget;
}

class MazeGame;
class Maze;

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

public slots:
    void systemExit(bool b);

signals:
    void notifyMapSite(int roomNo, QString type, int direction);

private:
    Ui::Widget *ui;
    QSystemTrayIcon *trayIcon;
    QTimer *timer;
    int w,h;

    MazeGame* game;
    Maze* _maze;
};

#endif // WIDGET_H
